﻿using System;
using System.ComponentModel.DataAnnotations;

namespace OConf.Model.RequestInput
{
    /// <summary>
    /// 分页查询请求参数
    /// </summary>
    public class QueryPageInputModel
    {
        /// <summary>
        /// 页码
        /// </summary>
        [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "页码必须大于1")]
        public int PageIndex { get; set; }

        /// <summary>
        /// 页数据量
        /// </summary>
        [Range(1, 100, ErrorMessage = "每页数据数量在1到100")]
        public int PageSize { get; set; }
    }
}
